home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 48
/
Amiga Format CD48 (1999-12-13)(Future Publishing)(GB)(Track 1 of 2)[!][issue 2000-01].iso
/
-serious-
/
misc
/
datelib
/
developer
/
rexx
/
include
/
date.rexx
Wrap
OS/2 REXX Batch file
|
1999-11-01
|
3KB
|
109 lines
/*
**
** Copyright © 1997-1999 Dipl.-Inform. Kai Hofmann. All rights reserved.
** Registered Amiga shared library!
**
** $VER: date.rexx 33.310 (16.06.99)
**
** Experimental version, please report bugs/improvements!
*/
DATE_INIT:
DATE_NAME = 'date.library'
DATE_VERSION = 33
DATE_REVISION = 310
DATE_DISPATCHER = -492
ADDRESS COMMAND
'VERSION' DATE_NAME DATE_VERSION DATE_REVISION '>NIL:'
IF RC > 0 THEN DO
SAY "Need '" || DATE_NAME || "'" DATE_VERSION || "." || DATE_REVISION
RETURN(10)
END
IF ~SHOW('LIBRARIES',DATE_NAME) THEN DO
IF ~ADDLIB(DATE_NAME,0,DATE_DISPATCHER,DATE_VERSION) THEN DO
SAY "Can not add '" || DATE_NAME || "'" DATE_VERSION || "." || DATE_REVISION
RETURN(10)
END
DATE_OPEN = 0
END
ELSE DO
DATE_OPEN = 1
END
/* Constant definitions */
TIME_CHANGEDAY_NORMAL = 0
TIME_CHANGEDAY_WINTERTOSUMMER = 1
TIME_CHANGEDAY_SUMMERTOWINTER = 2
DATE_MOONPHASES_NEWMOON = 0
DATE_MOONPHASES_FIRSTQUARTER = 1
DATE_MOONPHASES_FULLMOON = 2
DATE_MOONPHASES_LASTQUARTER = 3
DATE_WEEKDAYS_DAYERR = 0
DATE_WEEKDAYS_MONDAY = 1
DATE_WEEKDAYS_TUESDAY = 2
DATE_WEEKDAYS_WEDNESDAY = 3
DATE_WEEKDAYS_THURSDAY = 4
DATE_WEEKDAYS_FRIDAY = 5
DATE_WEEKDAYS_SATURDAY = 6
DATE_WEEKDAYS_SUNDAY = 7
DATE_DATETEXTS_DAY = 0
DATE_DATETEXTS_MONTH = 1
DATE_DATETEXTS_YEAR = 2
DATE_DATETEXTS_WEEK = 3
DATE_DATETEXTS_WEEKDAY = 4
DATE_DATETEXTS_HOUR = 5
DATE_DATETEXTS_MINUTE = 6
DATE_DATETEXTS_SECOND = 7
DATE_DATETEXTS_YESTERDAY = 8
DATE_DATETEXTS_TODAY = 9
DATE_DATETEXTS_TOMORROW = 10
DATE_WORDCLASS_SINGULAR = 0
DATE_WORDCLASS_PLURAL = 1
DATE_WORDCLASS_PERIODICAL = 2
DATE_LANGUAGES_LOCALE = 0
DATE_LANGUAGES_ENGLISH = 1
DATE_LANGUAGES_GERMAN = 2
DATE_LANGUAGES_FRENCH = 3
DATE_LANGUAGES_SPANISH = 4
DATE_LANGUAGES_PORTUGUESE = 5
DATE_LANGUAGES_DANISH = 6
DATE_LANGUAGES_ITALIAN = 7
DATE_LANGUAGES_DUTCH = 8
DATE_LANGUAGES_NORWEGIAN = 9
DATE_LANGUAGES_SWEDISH = 10
DATE_LANGUAGES_POLISH = 11
DATE_LANGUAGES_FINNISH = 12
DATE_LANGUAGES_HUNGARIAN = 13
DATE_LANGUAGES_GREEK = 14
DATE_LANGUAGES_ESPERANTO = 15
DATE_LANGUAGES_TURKISH = 16
DATE_LANGUAGES_LATIN = 17
DATE_LANGUAGES_RUSSIAN = 18
DATE_LANGUAGES_CZECH = 19
DATE_LANGUAGES_CATALONIAN = 20
DATE_LANGUAGES_SERBIAN = 21
DATE_LANGUAGES_LASTLANGUAGE = 22
DATE_COUNTRIES_UNKNOWN = 0
DATE_COUNTRIES_ITALIA = 1
DATE_COUNTRIES_DEUTSCHLAND = 2
DATE_COUNTRIES_SCHWEIZ = 3
DATE_COUNTRIES_DANMARK = 4
DATE_COUNTRIES_NEDERLAND = 5
DATE_COUNTRIES_GREATBRITAIN = 6
DATE_COUNTRIES_USA = 7
DATE_COUNTRIES_SWEDEN = 8
DATE_CALENDARS_JULIAN = 0
DATE_CALENDARS_GREGORIAN = 1
DATE_CALENDARS_HEIS = 2
RETURN(0)